import request from './requests.js'
import qs from 'qs'
import Cookies from 'js-cookie'
import {
	select_warehouse_location_url
} from "./setting.js"

import {
	Toast
} from 'vant'

import {
	getLocalTime
} from "./date.js"





function select_all_location(warehouse_id, callBack) {


		request({
			method: 'get',
			url: select_warehouse_location_url,
			params:{
				warehouse_id: warehouse_id
			}
		}).then((response) => { //这里使用了ES6的语法
			console.log(response)
			let sku_list = response.data.resultBody.reverse()

			callBack(sku_list)
		}).catch((error) => {
			console.log(error)
			Toast('远程接口故障请联系管理员！！')
	

		})


}





export default select_all_location
